component extends="fw1.framework" {

	this.name = "weatherTek";
	this.sessionManagement = true;

	this.mappings["/root"] = getDirectoryFromPath(getCurrentTemplatePath());

	variables.framework = {
		reloadApplicationOnEveryRequest=false
	};
	
	public function setupApplication() {
		var bf = createObject('component','coldspring.beans.DefaultXmlBeanFactory').init();
		bf.loadBeans( expandPath('config/coldspring.xml') );
		setBeanFactory(bf);
	}
	
	public function setupRequest() {
		setupApplication();
		var eventController = getController("event");
		eventController.persistSelection();	
	}

}